package com.coolw.design.pattern.create.abstractfactory.media;

import com.coolw.design.pattern.create.abstractfactory.AirConditionerFactory;
import com.coolw.design.pattern.create.abstractfactory.ElectricalAbstractFactory;
import com.coolw.design.pattern.create.abstractfactory.FridgeFactory;

/**
 * 美的空调信息
 *
 * @author coolw
 * @date 2019-12-24 11:06
 */
public class MediaFactory implements ElectricalAbstractFactory {

    @Override
    public FridgeFactory createFridge() {
        System.out.println("生产美的冰箱。。。。。。");
        return new MediaFridge();
    }

    @Override
    public AirConditionerFactory createAirConditioner() {
        System.out.println("生产美的空调。。。。。。");
        return new MediaAirConditioner();
    }
}
